/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By tennisport.cn
 * 注意：
 * 本软件为tennisport.cn开发研制，项目使用请保留此说明
 */
export const tableOption = {
    dialogType: 'drawer',
    border: true,
    stripe: true,
    menuAlign: 'center',
    align: 'center',
    menuType: 'text',
    searchShow: false,
    dialogWidth: '88%',
    selection: true,
    searchMenuSpan: 6,
    column: [
        {
            label: '广告标题',
            prop: 'name',
            search: true,
            display: false
        },
        {
            label: '活动页面链接地址',
            prop: 'link',
            display: false
        },
        {
            label: '广告宣传图片',
            prop: 'url',
            slot: true,
            display: false
        },
        {
            label: '广告位置',
            prop: 'position',
            slot: true,
            display: false
        },
        {
            label: '广告开始时间',
            prop: 'startTime',
            display: false
        },
        {
            label: '广告开始时间',
            prop: 'endTime',
            display: false
        },
        {
            label: '是否启用',
            prop: 'enabled',
            slot: true,
            display: false
        }

    ],
    group: [
        {
            icon: 'el-icon-goods',
            label: '基本信息',
            prop: 'group1',
            column: [
                {
                    label: '广告标题',
                    prop: 'name',
                    span: 9,
                    rules: [{
                        required: true,
                        message: '广告标题不能为空',
                        trigger: 'blur'
                    },{
                      max: 100,
                      message: '长度在不能超过100个字符'
                    }]
                },
                {
                    label: '广告或活动链接地址',
                    prop: 'link',
                    span: 9,
                },
                {
                    label: '宣传图片',
                    prop: 'url',
                    listType: 'picture-card',
                    dataType: 'string',
                    type: 'upload',
                    limit:1,
                    width: 250,
                    headers:{},
                    action: 'common/qiNiuUpload',
                    loadText: '附件上传中，请稍等',
                    span: 24,
                    tip: '只能上传jpg/png文件，且不超过50kb',
                    data: {fileName: ""},
                    rules: [{
                        required: true,
                        message: '宣传图片',
                        trigger: 'blur'
                    }]
                },
                {
                    label: '活动内容',
                    prop: 'content',
                    span: 18,
                    row: true,
                    type:'textarea',
                    minRows:10,
                    showWordLimit:true,
                    rules: [{
                      max: 100,
                      message: '长度在不能超过300个字符'
                    }]
                },
                {
                    label: "广告时间范围",
                    prop: "daterange",
                    type: "daterange",
                    format:'yyyy-MM-dd',
                    valueFormat:'yyyy-MM-dd',
                    startPlaceholder: '广告开始时间',
                    endPlaceholder: '广告结束时间',
                },
                {
                    label: '广告位置',
                    prop: 'position',
                    span: 9,
                    value: 1,
                    type: 'select',
                    dicData:[{
                        label:'首页',
                        value:1
                        }]
                },
                {
                    label: '是否启用',
                    prop: 'enabled',
                    span: 9,
                    value: 1,
                    type: 'select',
                    dicData:[{
                        label:'启用',
                        value:1
                        },
                        {
                        label:'不启用',
                        value:0
                        }]
                },

            
            ]
        }]
}
